const mysql=require('mysql')
const pool=mysql.createPool({
	// host:'mfdl.i234.me',
	// port:'13306',
	// user:'web2205',
	// password:'web2205',
	// database:'web2205',	
	// --------------个人数据库--------------
	//host:'127.0.0.2',
	//port:'3306',
	//user:'web2205',
	//password:'bt.122',
	//database:'web2205',
//-------------------本地数据库------------------------
	host:'localhost',
	port:'3306',
	user:'web2309',
	password:'web2309',
	database:'web2309',
//-------------------本地数据库1------------------------
	// host:'localhost',
	// port:'3306',
	// user:'web2309',
	// password:'web2309',
	// database:'web2309',

	
	//  mysql -uweb2309 -pweb2309
	//  select * from web2309.lh_user;
	
	// ---------------------共有属性--------
	connectionLimit:'15',	// 连接池的数量，默认15
	multipleStatements:true	,
})


module.exports=pool
